#include<iostream>
#include<string>
using namespace std;
class Complex
{
public:
	void display(string c);
	Complex(int a, int b) :real(a), imag(b) {};
	Complex() {
		real = 0;
		imag = 0;
	};
	int get_real();
	int get_imag();


private:
	int real;
	int imag;
};
void Complex ::display(string c)
{
	cout << c << "= " << real << "+" << imag << "i" << endl;
}
int Complex::get_imag()
{
	return imag;
}
int Complex::get_real()
{
	return real;
}
Complex operator+(Complex& c1, Complex& c2)
{
	Complex c3;
	return Complex(c1.get_real() + c2.get_real(), c1.get_imag() + c2.get_imag());
}

int main()
{
	Complex c1(3,4), c2(1,2), c3;
	c3 = c1 + c2;
	c3.display("c3");
	return 0;
}